<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>


<form id="addForm" action="${BASE_PATH}/change/scale/doUpdate" method="post" class="form-horizontal" onsubmit="return false;">
<input name="id" value="${id}" hidden="hidden">
	<div class="row cen">
		<div class="form-group ">
			<div class="col-lg-4 " style="margin-left:150px">
				<input type="text"  name="num" value="" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" class="form-control pull-right" placeholder="请输入配送比例" required="required">
			</div>
			<div class="col-lg-4"><button class="btn btn-primary col-sm-4 " type="submit">修改</button></div>
		</div>
	</div>
</form>
<script type="text/javascript">
$(function(){
	//初始化表单验证
	$("#addForm").validate({
		ignore: "",
		messages:{
			message: {required: "请输入消息内容"}
		},
		submitHandler:function(form){
			$(form).ajaxSubmit({
				success:function(data){
					dataPaginator.loadPage(1);
					viewDialog.close();
				}
			});
		}
	});
});

function tanchu(b){
return confirm(b);
}
</script>